package com.sanjiahantang.youjiaclient.module.me.quotation.views.impl;

import android.view.View;
import android.widget.TextView;

import com.sanjiahantang.youjiaclient.R;
import com.sanjiahantang.youjiaclient.base.BaseMvpActivity;
import com.sanjiahantang.youjiaclient.module.me.quotation.preseneters.QuotationPresenter;
import com.sanjiahantang.youjiaclient.module.me.quotation.views.QuotationView;

import static com.sanjiahantang.youjiaclient.config.StaticValue.KEY_ID;

/**
 * Created by zy on 2017/10/31.
 */

public class QuotationActivity extends BaseMvpActivity<QuotationView,QuotationPresenter> implements QuotationView, View.OnClickListener {

    private int id;
    @Override
    public void showProgress() {
        super.showProgress($this);
    }

    @Override
    public QuotationPresenter initPresenter() {
        return new QuotationPresenter();
    }

    @Override
    public void initView() {
        id = getIntent().getIntExtra(KEY_ID,0);
        setContentView(R.layout.activity_quotation);
        findViewById(R.id.txtSubmit).setOnClickListener(this);
        TextView title = (TextView) findViewById(R.id.title);
        title.setText("订单详情");
        findViewById(R.id.fl_Left).setOnClickListener(this);

    }

    @Override
    public void initData() {
        presenter.loadOrder($this,id, new OnLoadListener() {
            @Override
            public void onLoad(Object content) {

            }
        });
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.txtSubmit:

                break;
            case R.id.fl_Left:
                finish();
                break;
        }
    }
}
